package org.ddd.book.domain.book.repository;

import org.ddd.book.domain.IBaseRepository;
import org.ddd.book.domain.base.vo.AddressVO;
import org.ddd.book.domain.book.entity.LibraryEntity;

import java.util.List;

/**
 * 图书馆资源库
 */
public interface ILibraryRepository extends IBaseRepository<LibraryEntity> {

    LibraryEntity findByLibraryName(String libraryName);

    AddressVO findAddress(Long libraryId);

    List<LibraryEntity> allLibrary();

}
